﻿using System.Web;
using System.Web.Optimization;

namespace CentaLine.Site
{
    public class BundleConfig
    {
        // 有关 Bundling 的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));
            bundles.Add(new ScriptBundle("~/bundles/easyUi").Include(
                       "~/Scripts/jquery.easyui.js"));

            bundles.Add(new ScriptBundle("~/bundles/sea").Include(
                       "~/Scripts/lib/seajs/sea.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/Scripts/jquery-ui-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive*",
                        "~/Scripts/jquery.validate*"));

            // 使用 Modernizr 的开发版本进行开发和了解信息。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));

            bundles.Add(new StyleBundle("~/Content/themes/default/css").Include(
                        "~/Content/themes/default/easyui.css",
                        "~/Content/themes/default/dialog.css",
                        "~/Content/themes/default/combobox.css",
                        "~/Content/themes/default/combo.css",
                        "~/Content/themes/icon.css"
                        ));
        }
    }
}